/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author Munliga
 */
@Entity
@Table(name = "srv_cureplan_log")
@NamedQueries({
    @NamedQuery(name = "SrvCureplanLog.findAll", query = "SELECT s FROM SrvCureplanLog s"),
    @NamedQuery(name = "SrvCureplanLog.findById", query = "SELECT s FROM SrvCureplanLog s WHERE s.id = :id"),
    @NamedQuery(name = "SrvCureplanLog.findByIDSRVCurePlan", query = "SELECT s FROM SrvCureplanLog s WHERE s.iDSRVCurePlan = :iDSRVCurePlan"),
    @NamedQuery(name = "SrvCureplanLog.findByAgreeDeal", query = "SELECT s FROM SrvCureplanLog s WHERE s.agreeDeal = :agreeDeal"),
    @NamedQuery(name = "SrvCureplanLog.findByPriceMinAccept", query = "SELECT s FROM SrvCureplanLog s WHERE s.priceMinAccept = :priceMinAccept"),
    @NamedQuery(name = "SrvCureplanLog.findByPriceMaxAccept", query = "SELECT s FROM SrvCureplanLog s WHERE s.priceMaxAccept = :priceMaxAccept"),
    @NamedQuery(name = "SrvCureplanLog.findByDateMinAccept", query = "SELECT s FROM SrvCureplanLog s WHERE s.dateMinAccept = :dateMinAccept"),
    @NamedQuery(name = "SrvCureplanLog.findByDateMaxAccept", query = "SELECT s FROM SrvCureplanLog s WHERE s.dateMaxAccept = :dateMaxAccept"),
    @NamedQuery(name = "SrvCureplanLog.findByAttachHistory", query = "SELECT s FROM SrvCureplanLog s WHERE s.attachHistory = :attachHistory"),
    @NamedQuery(name = "SrvCureplanLog.findByIDSRVCureService", query = "SELECT s FROM SrvCureplanLog s WHERE s.iDSRVCureService = :iDSRVCureService"),
    @NamedQuery(name = "SrvCureplanLog.findByIDMHotel", query = "SELECT s FROM SrvCureplanLog s WHERE s.iDMHotel = :iDMHotel"),
    @NamedQuery(name = "SrvCureplanLog.findByIDMSpecialist", query = "SELECT s FROM SrvCureplanLog s WHERE s.iDMSpecialist = :iDMSpecialist")})
public class SrvCureplanLog implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "ID")
    private Long id;
    @Column(name = "ID_SRV_CurePlan")
    private BigInteger iDSRVCurePlan;
    @Column(name = "AgreeDeal")
    private Boolean agreeDeal;
    @Lob
    @Column(name = "Symptom")
    private String symptom;
    @Lob
    @Column(name = "RoomType")
    private String roomType;
    @Column(name = "PriceMin_Accept")
    private BigDecimal priceMinAccept;
    @Column(name = "PriceMax_Accept")
    private BigDecimal priceMaxAccept;
    @Column(name = "DateMin_Accept")
    @Temporal(TemporalType.TIMESTAMP)
    private Date dateMinAccept;
    @Column(name = "DateMax_Accept")
    @Temporal(TemporalType.TIMESTAMP)
    private Date dateMaxAccept;
    @Lob
    @Column(name = "Allergic_History")
    private String allergicHistory;
    @Lob
    @Column(name = "Disease_History")
    private String diseaseHistory;
    @Column(name = "Attach_History")
    private String attachHistory;
    @Column(name = "ID_SRV_CureService")
    private BigInteger iDSRVCureService;
    @Column(name = "ID_M_Hotel")
    private BigInteger iDMHotel;
    @Column(name = "ID_M_Specialist")
    private BigInteger iDMSpecialist;

    public SrvCureplanLog() {
    }

    public SrvCureplanLog(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public BigInteger getIDSRVCurePlan() {
        return iDSRVCurePlan;
    }

    public void setIDSRVCurePlan(BigInteger iDSRVCurePlan) {
        this.iDSRVCurePlan = iDSRVCurePlan;
    }

    public Boolean getAgreeDeal() {
        return agreeDeal;
    }

    public void setAgreeDeal(Boolean agreeDeal) {
        this.agreeDeal = agreeDeal;
    }

    public String getSymptom() {
        return symptom;
    }

    public void setSymptom(String symptom) {
        this.symptom = symptom;
    }

    public String getRoomType() {
        return roomType;
    }

    public void setRoomType(String roomType) {
        this.roomType = roomType;
    }

    public BigDecimal getPriceMinAccept() {
        return priceMinAccept;
    }

    public void setPriceMinAccept(BigDecimal priceMinAccept) {
        this.priceMinAccept = priceMinAccept;
    }

    public BigDecimal getPriceMaxAccept() {
        return priceMaxAccept;
    }

    public void setPriceMaxAccept(BigDecimal priceMaxAccept) {
        this.priceMaxAccept = priceMaxAccept;
    }

    public Date getDateMinAccept() {
        return dateMinAccept;
    }

    public void setDateMinAccept(Date dateMinAccept) {
        this.dateMinAccept = dateMinAccept;
    }

    public Date getDateMaxAccept() {
        return dateMaxAccept;
    }

    public void setDateMaxAccept(Date dateMaxAccept) {
        this.dateMaxAccept = dateMaxAccept;
    }

    public String getAllergicHistory() {
        return allergicHistory;
    }

    public void setAllergicHistory(String allergicHistory) {
        this.allergicHistory = allergicHistory;
    }

    public String getDiseaseHistory() {
        return diseaseHistory;
    }

    public void setDiseaseHistory(String diseaseHistory) {
        this.diseaseHistory = diseaseHistory;
    }

    public String getAttachHistory() {
        return attachHistory;
    }

    public void setAttachHistory(String attachHistory) {
        this.attachHistory = attachHistory;
    }

    public BigInteger getIDSRVCureService() {
        return iDSRVCureService;
    }

    public void setIDSRVCureService(BigInteger iDSRVCureService) {
        this.iDSRVCureService = iDSRVCureService;
    }

    public BigInteger getIDMHotel() {
        return iDMHotel;
    }

    public void setIDMHotel(BigInteger iDMHotel) {
        this.iDMHotel = iDMHotel;
    }

    public BigInteger getIDMSpecialist() {
        return iDMSpecialist;
    }

    public void setIDMSpecialist(BigInteger iDMSpecialist) {
        this.iDMSpecialist = iDMSpecialist;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof SrvCureplanLog)) {
            return false;
        }
        SrvCureplanLog other = (SrvCureplanLog) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entity.SrvCureplanLog[id=" + id + "]";
    }

}
